package com.byit.domain;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 公司表
 * </p>
 *
 * @author wangx
 * @since 2018-12-11
 */
@Data
@TableName("sys_company")
public class SysCompany extends Model<SysCompany> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("company_code")
    private String companyCode;
    /**
     * 公司名称
     */
    @TableField("company_name")
    private String companyName;
    /**
     * 联系人
     */
    @TableField("contact_name")
    private String contactName;
    /**
     * 联系人电话
     */
    @TableField("contact_tel")
    private String contactTel;
    /**
     * 地址
     */
    @TableField("address")
    private String address;
    /**
     * 排序
     */
    @TableField("order_by")
    private Integer orderBy;
    /**
     * 企业类型 1机关单位 2事业单位 3企业 4组织团体
     */
    @TableField("type")
    private Integer type;
    /**
     * 删除标记 0 未删除 1已删除 默认0
     */
    @TableField("is_del")
    private Integer isDel;
    /**
     * 插入时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 操作人Id
     */
    @TableField("operation_id")
    private Long operationId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysCompany{" +
                ", id=" + id +
                ", companyCode=" + companyCode +
                ", companyName=" + companyName +
                ", contactName=" + contactName +
                ", contactTel=" + contactTel +
                ", address=" + address +
                ", orderBy=" + orderBy +
                ", type=" + type +
                ", isDel=" + isDel +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", operationId=" + operationId +
                "}";
    }
}
